package com.findFish.fish.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.fish.mapper.FishBehaviorMapper;
import com.findFish.fish.domain.FishBehavior;
import com.findFish.fish.service.IFishBehaviorService;

/**
 * 鱼类行为分析Service业务层处理
 * 
 * @author admin
 * @date 2025-04-01
 */
@Service
public class FishBehaviorServiceImpl implements IFishBehaviorService 
{
    @Autowired
    private FishBehaviorMapper fishBehaviorMapper;

    /**
     * 查询鱼类行为分析
     * 
     * @param id 鱼类行为分析主键
     * @return 鱼类行为分析
     */
    @Override
    public FishBehavior selectFishBehaviorById(Long id)
    {
        return fishBehaviorMapper.selectFishBehaviorById(id);
    }

    /**
     * 查询鱼类行为分析列表
     * 
     * @param fishBehavior 鱼类行为分析
     * @return 鱼类行为分析
     */
    @Override
    public List<FishBehavior> selectFishBehaviorList(FishBehavior fishBehavior)
    {
        return fishBehaviorMapper.selectFishBehaviorList(fishBehavior);
    }

    /**
     * 新增鱼类行为分析
     * 
     * @param fishBehavior 鱼类行为分析
     * @return 结果
     */
    @Override
    public int insertFishBehavior(FishBehavior fishBehavior)
    {
        return fishBehaviorMapper.insertFishBehavior(fishBehavior);
    }

    /**
     * 修改鱼类行为分析
     * 
     * @param fishBehavior 鱼类行为分析
     * @return 结果
     */
    @Override
    public int updateFishBehavior(FishBehavior fishBehavior)
    {
        return fishBehaviorMapper.updateFishBehavior(fishBehavior);
    }

    /**
     * 批量删除鱼类行为分析
     * 
     * @param ids 需要删除的鱼类行为分析主键
     * @return 结果
     */
    @Override
    public int deleteFishBehaviorByIds(Long[] ids)
    {
        return fishBehaviorMapper.deleteFishBehaviorByIds(ids);
    }

    /**
     * 删除鱼类行为分析信息
     * 
     * @param id 鱼类行为分析主键
     * @return 结果
     */
    @Override
    public int deleteFishBehaviorById(Long id)
    {
        return fishBehaviorMapper.deleteFishBehaviorById(id);
    }
}
